<template>
  <div>
    <div class="navsearch">
      <div class="search">
        <div class="search_first" @click="$router.push('/indexbar')">
          <p>杭州</p>
          <van-icon name="arrow-down" class="icon_onw" />
        </div>
        <p class="search_conter">|</p>
        <div class="search_last" @click="$router.push('/onsearch')">
          <van-icon size="17" name="search" class="icon_two" />
          <input disabled type="text" placeholder="请输入你的关键字" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{

    }
  }
};
</script>

<style lang="scss" scoped>
.navsearch {
  width: 100%;
  height: 55px;
  background-color: #2bd483;
  position: fixed;
  top: 0;
  z-index: 999;
  transition: 0.5s;
  .search {
    position: sticky;
    width: 355px;
    height: 41px;
    border-radius: 3px;
    top: 7px;
    left: calc((100% - 355px) / 2);
    display: flex;
    padding: 0 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    z-index: 1;
    .search_first {
      width: 65px;
      height: 41px;
      display: flex;
      line-height: 41px;
      justify-content: center;
      .icon_onw {
        top: 13px;
      }
    }
    .search_conter {
      line-height: 41px;
      color: #79757537;
    }
    .search_last {
      width: 260px;
      height: 41px;
      line-height: 41px;
      text-align: center;
      .icon_two {
        top: 1px;
      }
    }
  }
}
</style>
